
import { createMemoryHistory, createWebHistory, createRouter } from 'vue-router';

// import HomePage from '../components';

const routes = [
    {
        path: "/", 
        name: "home", 
        component: () => import("@/components/index.vue")
    },{
        path: "/mind", 
        name: "mindView", 

        component: () => import("@/components/mindonline/MindView.vue")
    },{
        path: "/mind/create", 
        name: "mindCreate", 
        component: () => import("@/components/mindonline/MindEdit.vue")

    },{
        path: "/mind/edit/:id", 
        name: "mindEdit",
        component: () => import("@/components/mindonline/MindEdit.vue")
    },{
        path: "/user", 
        name: "userView", 
        component: () => import("@/components/setting/UserView.vue")
    },{
        path: "/ws", 
        name: "wsView", 
        component: () => import("@/components/ws/index.vue")
    },{
        path: "/mov", 
        name: "movView", 
        component: () => import("@/components/plays/Movs.vue")
    },{
        path: "/menu", 
        name: "menuView", 

        component: () => import("@/components/setting/MenuView.vue")
    },{
        path: "/group", 
        name: "groupView", 

        component: () => import("@/components/setting/GroupView.vue")
    },{
        path: "/api", 
        name: "apiView", 
        component: () => import("@/components/apis/index.vue")
    },{
        path: "/bug", 
        name: "bugsView", 
        component: () => import("@/components/bugs/index.vue")
    },{
        path: "/file", 
        name: "fileView", 
        component: () => import("@/components/files/index.vue")
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router